/* 统一样式 */
* {
    padding: 0;
    margin: 0;
    list-style: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

html,
body,
.section {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}


.hide {
    display: none !important;
}

/* 图片上传 */
.fileReader-wraper {
    position: absolute;
    margin: 100px auto;
    right: 0;
    left: 0;
    display: block;
    width: 600px;
    height: 400px;
    border-radius: 30px;
    border: 2px dashed #ccc;
}

.fileReader-wraper:hover {
    border: 2px dashed rgb(48, 130, 236);
    cursor: pointer;
}

.uploader-cover {
    padding-top: 140px;
    text-align: center;
    color: #bbb;
}

.uploader-icon {
    font-size: 150px;
    color: rgb(48, 130, 236);
}


/* 图片编辑 */
.myCanvas {
    width: calc(100% - 90px);
    height: calc(100% - 30px);
    margin: 15px 15px 15px 75px;
    background-size: 25px 25px;
    background-image: repeating-conic-gradient(from 0deg, #fff 0deg 90deg, #ccc 90deg 180deg);
    border: 1px solid #aaa;
}



.editor {
    background: #fff;
}

.editor-toolbar {
    position: absolute;
    left: 0px;
    width: 60px;
    height: inherit;
    background: #fff;
    text-align: center;
    border-right: 1px solid #ddd;
    transition: left .5s ease-out;
}

.toolbar-title {
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #ddd;
}

.toolbar-items {
    width: 60px;
    height: 60px;
    font-size: 24px;
    line-height: 60px;
    color: #aaa;
    cursor: pointer;
    animation: fade-in .3s ease-in;
}

.toolbar-items:hover {
    color: #fff;
    background: rgb(44, 135, 240);
}


@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 选区 */
.clip {
    position: absolute;
    display: block;
    border: 1px dashed #999;
    cursor: move;
    z-index: 100;
    top: 0;
    left: 0;
    width: 0;
    height: 0;

    /* left: 400px;
    width: 300px;
    height: 300px; */

}

.clip .clip-horn {
    position: absolute;
    background: #555;
    width: 5px;
    height: 5px;
    margin: auto;
}

.clip .clip-horn-n {
    top: 0;
    right: 0;
    left: 0;
    cursor: n-resize;
}

.clip .clip-horn-s {
    bottom: 0;
    right: 0;
    left: 0;
    cursor: s-resize;
}

.clip .clip-horn-w {
    left: 0;
    bottom: 0;
    top: 0;
    cursor: w-resize;
}

.clip .clip-horn-e {
    right: -1px;
    bottom: 0;
    top: 0;
    cursor: e-resize;
}

.clip .clip-horn-nw {
    top: 0;
    left: 0;
    cursor: nw-resize;
}

.clip .clip-horn-sw {
    bottom: 0;
    left: 0;
    cursor: sw-resize;
}

.clip .clip-horn-ne {
    right: -1px;
    top: 0;
    cursor: ne-resize;
}

.clip .clip-horn-se {
    bottom: 0;
    right: -1px;
    cursor: se-resize;
}